//
//  KKImagePickerController.h
//  SHDoctor
//
//  Created by Mac mini on 15/10/13.
//  Copyright © 2015年 ShiHeng. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <Photos/Photos.h>

#import "KKImagePickerModel.h"

@protocol KKImagePickerControllerDelegate;

@interface KKImagePickerController : NSObject

+ (instancetype)shareImagePickerManager;

@property (nonatomic, weak) id<KKImagePickerControllerDelegate> delegate;
@property (nonatomic, assign) NSInteger maxCount;
@property (nonatomic, assign) NSInteger tag;

- (void)takePicture;

- (void)getPhotosFromAlbum;

+ (UIImage*)fullImageFromAsset:(ALAsset*)asset;

+ (UIImage*)thumbImageFromAsset:(ALAsset*)asset;

@end

@protocol KKImagePickerControllerDelegate <NSObject>

@optional
- (void)imagePickerController:(KKImagePickerController*)imagePickerController didSelectedPhotos:(NSArray*)assetItems;

@end
